import { get } from '@/utils/http'

enum API {
  // 获取产品类别及总价
  GETCATEGORYANDNUMBER_API = '/overview/getCategoryAndNumber',
  // 获取管理员与用户总数
  GETADMINANDUSERCOUNT_API = '/overview/getAdminAndUserCount',
  // 获取消息等级和总数
  GETMESSAGELEVELCOUNT_API = '/overview/getMessageLevelCount',
  // 每日登录数量
  GETLOGINCOUNT_API = '/overview/getloginCount'
}
// 获取产品类别及总价
export const getCategoryAndNumberAPI = () => {
  return get<echartsData[]>(API.GETCATEGORYANDNUMBER_API)
}

// 获取管理员与用户总数
export const getAdminAndUserCountAPI = () => {
  return get<echartsData[]>(API.GETADMINANDUSERCOUNT_API)
}

// 获取消息等级和总数
export const getMessageLevelCountAPI = () => {
  return get<echartsData[]>(API.GETMESSAGELEVELCOUNT_API)
}

// 每日登录数量
export const getloginCountAPI = () => {
  return get<echartsData[]>(API.GETLOGINCOUNT_API)
}
